package myschool;

public class Printer {
    public void print(Ink ink,Paper paper,Content[] contents){
        System.out.println("使用"+paper.getType()+"纸张");
        System.out.println("使用"+ink.getColor()+"墨水");
        System.out.println("宣传信息如下：");
        for (Content content:contents) {
            System.out.println("\t"+content.getInfo()+"\n");
        }
    }
}
